package real.realschool;


public class Defence_Injection {
	
	public boolean check = true;
			
	public boolean Defence(String input){		
		
		if(input.length() > 3){
			if(input.substring(0,4).equals("<met") || input.substring(0,4).equals("join") || input.substring(0,4).equals("drop") || input.substring(0,5).equals("table") || input.substring(0,6).equals("insert")){
				check = false;
			}			
			
		}
		
		for(int i=0; i<input.length(); i++){
			if(input.charAt(i) == '*' || input.charAt(i) == '\'' || input.charAt(i) == '<' || input.charAt(i) == '>' || input.charAt(i) == '"'){
				check = false;
			}
		}
		
		return check;
	}		
	
	
}
